package com.situ.day8homework3;

public abstract class Square implements IShape {
	private double a;
	private double mianji;
	
	public Square() {
		super();
	}

	public Square(double a, double mianji) {
		super();
		this.a = a;
		this.mianji = mianji;
	}
	
	
	public double getA() {
		return a;
	}

	public void setA(double a) {
		this.a = a;
	}

	public double getMianji() {
		return mianji;
	}

	public void setMianji(double mianji) {
		this.mianji = mianji;
	}

	@Override
	public double area() {
		return mianji = a * a;
		
	}
	
}
